Added the option to have attributes generated.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>