Added check for enabled.