Fixes #9 - Added dependencies and moved a call to EDT.