Fixed clock thing but need to improve speed somehow.