Changed capture to ensure we never capture more than 256 samples