[main] Finished main methods. Still need to change algorithm.