Moved value assignment to onWorldLoad