First commit with fully working bug-finding procedure