Add lock struct