State as seperate module