Code

Introduce prefixcmp macro to reduce code verbosity