Optimize the source