Remove from array and set functionality and log-to-console