Main functionality now works. Need to add stats stuff now.