Updating script for UserRepository changes in code