Working on the importance function