Implemented proper filesend protocol