Repository Functions.