Updated to work with PostFile