Removed flatten method