Change trigger query to instructions