A toolkit for planning and action