Last tested and working code and ready for future development