Some setup and registry functions implemented

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>