I could not make this function work (at least in the testing environment =/).