Forward-backward core code