Convert constructor to accept array of options