Updated with bool, considering double long