Added automatic chart making