Updated last implementation.