Some test code. isInside() is wrong, will fix tomorrow.