Removed the returned trigger and added a callback function instead