Made action serializable so that it can be pushed across to the daemon.