Fixed bug where code would return RF