Right now we have one hook which is then doing different things according to the input. We should instead have separate hooks.