Added define callback method directly