Basic function implemented. For some reason the module doesn't work yet.