Exception handling, safe coordinate checks.