Changed pattern matching in call function.