The location is already being passed as a parameter to the toggle function, but is currently ignored and is being re-looked up manually.