Modified transformer to not throw errors