Added script engine, still not finished, but works as intended.