Removed premature readkey call.