Refined functionality for compiler function