The Thread.sleep? When I started device testing the filereader was getting in before the filewriter when it really shouldn't have been.