Adding source code for engine