Separated functions into plugin ones and other ones.