Improved object initialization and deletion