Edit code almost done. Still need to escape stuff