Added controller action / service logic to handle state space generation