Cleaned doubled function declaration