Fixed a few more bugs, implemented setting values for invocations.