Made loading synchronious