Updated to execute file just once