Only set state when values require to be changed

Signed-off-by: Damien Zammit <damien@zamaudio.com>