Added script for monitoring memory usage