Added ability to record readings and retrieve from history.