Readers and writers modified for android compatibility