Here is a script to make debugging easier: