Added comments explaining magic numbers