Fixed overflow bug. Added delay after putchar