Fix whitespace and sample for 2 seconds each time