Tested, added comments, helper script