Add functions to commands