Improved object initialization