Ported ballcatch activity
Minor, more usual syntax for MacOSX.