Fixed function scope issues

Most functions aren't fully implemented yet but fonts downsize.