Changed bash-style function declaration to POSIX style for compatibility with other shells