Refactored to allow for multiple non-interfering decoders on the same page.