Add a function for testing seems to work fine so far.