Added comments for the init() function.