Allowed for changing resolution