Removed unused variables + messageBox call (undefined in extensions).