I've got code similar to the following... Do you have buffet facilities? ... This worked for me...
stackoverflow.com