Modified number of users code