Working on new server loop