Migrate to print function