Add afterLoad callbacks to track trial creation

This code contains console calls that will be removed once
tested/validated.