Fixing output. Binary perceptual constraint still breaks things (commented out for now)