Added support for behind and ahead.