Fixes and added regular update loop.