Added mode API call + more logging

Signed-off-by: Ravn T-M <ravn.tm@gmail.com>