Added checking valid actions and objects