Timer function has been written, I haven't included it in any of the functions because I'm not sure where we sure measure things yet.