MASLAB Staff-provided code for IAP 2013.