Added email marking function