Updating simulation code now that directional calling is integrated into main template.