Commonly used helper and extension methods by me.