Change getActions to getMethods and return method info