Add methods for set and retrieval of last commit