Move printing messages outside framework