Add portmaster check function.