-Added function spies feature