Removed output statements and set n = 1024