Removed extraneous function calls.
Inlined function call.