Renamed core to forward and val to direction