Split application into multiple files. Still restructuring.