Moved execution away from UI thread to avoid dalvikvm timeouts as much as possible.