New method of checking RAM usage