Added dependency on alexandria and deleted duplicate functions