Adding helper utilities for code generation