My code snippets to ease some work