Trying out main loop