Rewritten the script to support only the latest BSP version