Added -tmap parameter. Added miss rate function in tasks.