Changed embarassing 'loop' IO action to instead use 'forever'