Adding breaking scope to avoid problems with closures and event delegation.