Initial import. Fixed endless loop ;)