Added support for multiple hidden layers. Swag.