Add support for ghost operators

Signed-off-by: Álvaro Arranz <aarranz@conwet.com>