Changed distance parameters from pixels to dips, enhanced example.