Added 'var' to definition of pattern