Adding some code for detecting administrators.