Add mutex
Apply go fmt