Inserted methods that will be useful in the main loop