Fully working version. Added SBT