Added function flatten