Corrected functionality of modulo and concatenation operations