1.1 - Procedure works fully

slight bug with stackoverflow in main loop