Simplify handler type

Work with []byte to make the code a little more concise.