Added ability to configure spinner.