Don't know why I had to make this function safe... not like I will ever check the return value anyway...