- Added deleted flag check to repositories.