Fixed bug in main loop.
Merge pull request #3 from baspeters93/dev

Fixed bug in main loop.