Parameterized handler installation and added stubs for time and sleep
swi handlers