Updating __init__() logic and improving log formatting