Implement some stuff

@juanxo: ping.