Simplified redundant code in Interact script.