Add checks for previous commit