Add support for random_action