P.S.: Submitting patches would be easier if trailing whitespaces would be cleaned up in all files ;)