Rename init function to initWithContext to match changes in main code.