Added support for relative patterns