Adding Separte initialization function

Signed-off-by: Gehadelrobey <gehadelrobey@gmail.com>