Adding init function support