Added plotall function