Removed unnecessary logEvent method