Added direction to action callback