Added functions to actions
First draft for a Command Line interface