Ugly behaviour implementation.