Adding simulation code for directional calling