Added empty callback functions.
Register callback functions.
Added vrs_callback_update().
Added logic to callback functions, fixed errors and refactoring.