Updating function declarations to avoid parse errors in some bash versions