Can you add a space line between the two if statements? Since one is for logging and the other one is for profile.