First attempt at deleting surrounding function