Changed it so memory did not reset after the program finished executing.