SW: Removed loop_ctr in main