Added file sink and source implementation