Initial commit. Contains main functionality of add-on.