Fixed issues with return functions, made run and delay work properly.