Converted Thread to AsyncActivityTask