Implementing and testing a decoupler.