Had to fix quite a bit since tim acceidently replaced the main with something else.