Added in support for a speaker and variable tone input.