Added check for main plugin, Registered Gates