Creating correct executable