Make it possible to run custom code between sending out a command and expecting and receiving the answer. Change-Id: I11359b144a27c58de8ec2b136bd6715c7d1b9cce