Adding g5k template and undo the modification on the pipe