Optimized gui stuff.