Adding the code and capture scripts.