Added check for transformer