Replaced a call to Q.activate with tool.Q.onInit