Added server and ui functions