I know this is a old post but I'd like to add a example I've adapted from the above example. I thought it would be some what useful for people.
https://dl.dropbox.com/u/70571329/dpad%20example.mfa ...