Added proper callback and modules initialization on ready.