Added number feature for middleware