Increased legibility (eliminated magic numbers and added comments)