Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
The original code made by @logico-dev (#559)