Added code to support revisions