Dumping here code that I no longer require in apps, but was nice ide