Cleanup
Added uid and gio functions