Fixed method calls to match the changes made to the interface.