Added compatibility for Chrome