Emergency functionality added

Signed-off-by: plamen911 <plamen@lynxlake.org>