Moved map initialization down