Sorry for the fuss, had kind of a syntax error. There were missing brackets around the function call that are necessary in order for this to work.