Write basic file saving handler still needs work and not tested.