Change to use inbuild function.