Removed main class and kept functions.