Fixing new print function to accept all types.