Fix integer validation problem
Issues #22 - move synchonization code to reusable helper method