New methods in code api.