Done puttoing code in seperate functions and modules based on purpose