Added the ability to accept nested attributes