Added index to padded byte array