Corrected after comments from @dimiter