Added callbacks to utility functions and updated commands.js to reflect changes
Addition of callbacks
Callback changes