Added more detailed comments