Added check on init indices.