Pass object instead of name