Allow overriding of transformInput