Static initialization function