(#1234) Add awesome foo functionality.

Without this patch, we cannot support foo which is highly sought after.