Implemented label resolution.