Added proper logging to the repository classes.