Added hit testing.