Started working on functions working with procedures
Added some tests that break procs