Subfile now created at the beginning for locking