Most of gui done.