Added code for all different types of logs