Added cpu_usage and mem_usage functions