[WIP] Add daemon option (implements #409)