Added support for up to 8 arguments