Set of boilerplate code, I use often