New function for checking quota