More data structures, client/server threads, ray path definition