Initial commit of modifications to firmware to include BitPattern functionality.