Do some error checking around PostFile.