Added email parsing method