Added possibility to pass arguments to the functions