Feature added for writing variable number of classifier data