Removed unused variable definition and added a new selector to opts