Defun, evcon implemented. First commit of these so not fully tested yet!