Logging added to the purpose controller