Referring to this post implemented the same logic, but the parameter is not accessible in transformer6. @stefancvrkotic