Improve getActions method