Refactor code to seperate method
Implement multiworld support