Adding parameters into createRoot().

Signed-off-by: Stanislav Demyanovich <stan@angrybubo.com>