Scripts for interacting with Apex