An alternative approach, using a context manager
Remove debug statement