Use wrapper function instead of constructor