Fixing to() function ignoring immediate argument, closes #46