Wrote methods to control the load via main.java