Commands as functions