Added libs, added useful code