Fixed check for change
Fixed network optimization to include rotations