Setting commit methods as virtual