Added some checks to input commit size.