Moved update function to separate file
Resources!
Cleanup