v1.1 (changes suggested by RaZgRiZ) - remove 'result' where it is not needed - change 'cases' into 'case' where we're not comparing strings - use 'getalias' instead of hiding warnings with 'nodebug'