Added server monitor function to setup.