Integrate some library functions

Ah yes a redundant import :) good spot! Deleting this line makes to me, thanks.