Slight mod for consistent int casting