Fixed: Code readability and an error in Stack_TrimExcess() where previous contents were not being copied across.