Tried to prevent serialization of closure