Works as standalone
Read the file with locking