Add fragment source code