Working version with nexus 7 timeout issue