Collected Code snippets from various open source projects