Code update in constructor