Add scripts and modify sources