Added a scatter function.