Added code for  2 referent and 6 referent conditions