Adapted sat, but working strangely