Added file lock stuff in the server