Removed link function in favor of compile