Aligned with API to use byte as input