Removed progress bar from generate button. It was making the activity be twice as slow. I'll use flash instead