Add assert to have more granular errors