More reliable method of previous commit.