Move function to private block