Implemented setTimeout instead of setInterval. Fixes #46