Updated registry dependency to improve error handling