Fixed scoping bug that mashed all method names to same one