Modified method in constructor