Make sure files have correct permissions
Ensure file are generated syncronously