Some plotting functions added