Implemented the guard earshot prototype.