Removed duplicate code from faulty repo