Store actions as functions