Organizing the function type checking
defer mtx.Unlock()