Random functions written during different projects for various reasons