Simplified the new function.