Completed implementation of edgesets problems, needs more fixes and
refactoring though