Added attribute declaration checking