Remove "mainloop()" function.