Removed system(pause) from main