Modified structure, added world management.