Edited the code to test some things. The code will be changed soon.
Basic template code for everyone to use