Added options to customize output.