Fixed stderr bugs in Functions.pm