Edit a POS refactored, now it works:D