Added a delay in saving data to capture last character entered