Moved code into start function, added restart|reload to arguments