Core code:
(C) 2001 Justin Schoeman <justin@suntiger.ee.up.ac.za>
