More generic way to include special functions