Removed unnecessary code from resolver.