Removed uneeded while "loop" (ran only once)