Adding inner class for Action handling.