Beta (malfunction)

Beta that doesn't work. Will redo the code from scratch.