Removed the un-used getClearance function and updated the flowchart.