Removing unnecessary defer (the call was already at the end of the function it was in
)