Support for more than 4 functions on Spark device