Getting rid of nasty error messages
Added a method for anti-aliasing